package com.info.zhiduoduo.repository.entity.invoice;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cuichenglong
 * @since 2020-09-16
 */
@Data
@Accessors(chain = true)
@TableName("zdd_invoice_strategy")
public class InvoiceStrategy extends Model<InvoiceStrategy> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;
    /**
     * 智众包城市
     */
    @TableField("crowdsource_city")
    private int crowdsourceCity;
    /**
     * 一个月最多开几次票
     */
    @TableField("number_month")
    private int numberMonth;
    /**
     * 一个月最多开多少钱
     */
    @TableField("money_month")
    private BigDecimal moneyMonth;
    /**
     * 一年最多开几次票
     */
    @TableField("number_year")
    private int numberYear;
    /**
     * 一年最多开多少钱
     */
    @TableField("money_year")
    private BigDecimal moneyYear;
    /**
     * 一年最多开多少钱
     */
    @TableField("not_continuity_month")
    private int notContinuityMonth;
    private Date createtime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
